﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;

namespace YXShop.Web.product
{
    public partial class product_album : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string ProID =ChangeHope.WebPage.PageRequest.GetQueryString("id");
                if (string.IsNullOrEmpty(ProID))
                {
                    Response.End();
                }
                YXShop.BLL.Product.ProductInfo datab = new YXShop.BLL.Product.ProductInfo();
                YXShop.Model.Product.ProductInfo data = datab.GetModel(Convert.ToInt32(ProID));
                string ProName = "", ProNO = "";
                if (data!=null)
                {
                    ProName = data.pro_Name;
                    ProNO = data.pro_NO;
                }
                string url=string.Empty;
                url =YXShop.TemplateAction.Common.UrlStr("shoppingcart", "addItem=" + ProID + "", "product/");
                StringBuilder shtml = new StringBuilder();
                shtml.Append(YXShop.TemplateAction.Common.YXShop_PageContent("productalbum"));
                shtml.Replace("{$ProName$}", ProName);
                shtml.Replace("{$ProNO$}", ProNO);
                shtml.Replace("{$ProductURL$}", url);
                Response.Write(shtml.ToString());
            }
        }
    }
}
